import java.util.Scanner;

public class 简单斐波拉契 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int a = 0;
        int b = 1;
        int c = 0;
        if(n==1) System.out.println(0);
        else if (n==2) System.out.println("0 1");
        else {
            System.out.print("0 1 ");
            for (int i = 3; i <= n; i++) {
                c = a + b;
                a = b;
                b = c;
                System.out.print(c+" ");
            }
        }
    }
}
